<h1>Cal List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Description</th>
      <th>Category</th>
      <th>Details</th>
      <th>Dstart</th>
      <th>Dend</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($cal_list as $cal): ?>
    <tr>
      <td><a href="<?php echo url_for('cal/show?id='.$cal->getId()) ?>"><?php echo $cal->getId() ?></a></td>
      <td><?php echo $cal->getDescription() ?></td>
      <td><?php echo $cal->getCategory() ?></td>
      <td><?php echo $cal->getDetails() ?></td>
      <td><?php echo $cal->getDstart() ?></td>
      <td><?php echo $cal->getDend() ?></td>
      <td><?php echo $cal->getCreatedAt() ?></td>
      <td><?php echo $cal->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('cal/new') ?>">New</a>
